<?php /* Smarty version 2.6.26, created on 2018-07-25 23:43:03
         compiled from D:%5Citemstudy%5Citem/admin%5Ctemplates/shop/edit.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="cnav"><a href="javascript:;" class="back">店铺管理</a></div> 
<div class="main"> 
	<form action="?m=shop&a=save" method="post">
		<?php if ($this->_tpl_vars['row']['id']): ?><input type="hidden" name="id" value="<?php echo $this->_tpl_vars['row']['id']; ?>
"/><?php endif; ?>
		<table class="etable">
			<tr>
				<td width="120">店铺类型：</td>
				<td>
					<?php $_from = $this->_tpl_vars['shop_type']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['i']):
?>
						<label><input type="radio" value="<?php echo $this->_tpl_vars['k']; ?>
" name="type" <?php if ($this->_tpl_vars['row']['type'] == $this->_tpl_vars['k']): ?>checked="checked"<?php endif; ?>/><?php echo $this->_tpl_vars['i']; ?>
店铺</label> 
					<?php endforeach; endif; unset($_from); ?> 
				</td>
			</tr> 
			<tr>
				<td>店铺分类：</td>
				<td>
					<select name="cid">
						<?php $_from = $this->_tpl_vars['shop_type_row']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>	
								<option value="<?php echo $this->_tpl_vars['i']['cid']; ?>
" <?php if ($this->_tpl_vars['i']['cid'] == $this->_tpl_vars['row']['cid']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['i']['name']; ?>
</option>
						<?php endforeach; endif; unset($_from); ?>		
					</select>
				</td>
			</tr> 
			<tr>
				<td>店铺名称：</td>
				<td><input name="name" type="text" size="38" value="<?php echo $this->_tpl_vars['row']['name']; ?>
"></td>
			</tr> 
			<tr>
				<td>联系电话：</td>
				<td><input name="mobile" type="text" size="38" value="<?php echo $this->_tpl_vars['row']['mobile']; ?>
"></td>
			</tr>
			<tr>
				<td>联系姓名：</td>
				<td><input name="contact" type="text" size="38" value="<?php echo $this->_tpl_vars['row']['contact']; ?>
"></td>
			</tr> 
			<tr>
				<td>分成比例：</td>
				<td><input name="ratio" type="text" size="38" value="<?php echo $this->_tpl_vars['row']['ratio']; ?>
"></td>
			</tr>
			<tr>
				<td>限时促销：</td>
				<td>
					<label><input name="act_status" type="radio" value="1" <?php if ($this->_tpl_vars['row']['act_status'] == '1'): ?>checked="checked"<?php endif; ?>>开启</label>
					<label><input name="act_status" type="radio" value="0" <?php if ($this->_tpl_vars['row']['act_status'] == '0'): ?>checked="checked"<?php endif; ?>>关闭</label> 
				</td>
			</tr>
			<tr>
				<td>状态：</td>
				<td>
					<label><input name="status" type="radio" value="1" <?php if ($this->_tpl_vars['row']['status'] == '1'): ?>checked="checked"<?php endif; ?>>开启</label>
					<label><input name="status" type="radio" value="0" <?php if ($this->_tpl_vars['row']['status'] == '0'): ?>checked="checked"<?php endif; ?>>关闭</label>	
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input name="submit" type="submit" class="submit" value="保存"/></td>
			</tr>
		</table>
	</form> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>